#include "GowildResponseHeartbeatCmd.h"

GowildResponseHeartbeatCmd::GowildResponseHeartbeatCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::GowildProtocol;
    this->m_functionCode = FunctionCode;
}

Package GowildResponseHeartbeatCmd::toPackage()
{
    Package package;

    QVariantMap jsonData;
    jsonData.insert("type","RESPONSE_HEART_BEAT");
    QJson::Serializer serializer;
    QByteArray body = serializer.serialize(jsonData, NULL);

    package.setBody(body);
    package.setFunction(FunctionCode);

    return package;

}

void GowildResponseHeartbeatCmd::unPackage(Package package)
{
    Q_UNUSED(package);
}
